<?

function WriteToFile($path, $content) 
{
    if(file_exists($path)) 
    {
        unlink ($path);
    }
    $fp = fopen($path, 'w');
    fwrite($fp, $content);
	fclose($fp);  
}
function LoadBin64Images($i,$k="") 
{
    global $href;
	if ($k=="")
    header ("Content-type: image/gif");
    $imgs = Array();
    $imgs["a"] = "R0lGODlhAwA9AJEAAEJZckhifv///wAAACH5BAUUAAIALAAAAAADAD0AAAIchIMGGMqeTlzzyXYhpttyDWbiN3pmhXZpSLZeAQA7"; 
    $imgs["b"] = "R0lGODlhAgAuAJEAAOXl5f///////wAAACH5BAUUAAIALAAAAAACAC4AAAIQTACGmtfrmIwU2ofn1bmCAgA7";
    $imgs["c"] = "/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAYEBAQFBAYFBQYJBgUGCQsIBgYICwwKCgsKCgwQDAwMDAwMEAwODxAPDgwTExQUExMcGxsbHCAgICAgICAgICD/2wBDAQcHBw0MDRgQEBgaFREVGiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICD/wAARCABkAAUDAREAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAwj/xAAXEAEBAQEAAAAAAAAAAAAAAAAAEhEB/8QAFAEBAAAAAAAAAAAAAAAAAAAAAP/EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhEDEQA/AKYoA6AtANdAVgKgFQC0BaAa6ArANgMH/9k=";
    $imgs["d"] = "R0lGODlhDQAMAMQXAHJzt8/P/zg4cU1ccP7+/mpq0CxJr0NDhoqJ71hbsIeIx7+//i0vWubr9Nnh7qCf55OSxn5/vrzByo2N1MXL1q6t9XN/jwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABcALAAAAAANAAwAAAVcICQqShQBaKJCAUK8MKEerBu/hnAo7U00hschEijcGkAhoAhrOBwUg0KwLKoMWOmEuggsKuDHY0ISJBaLgXo9MJm/g+ezYTkxEpUHQyKh8AcoDBcJBwcCh4gMiiEAOw==";     
    $imgs["e"] = "R0lGODlhCwALAJEAAAAAAP///5mZmQAAACwAAAAACwALAAACG5SPFsus3R5gM7wwqxVNb4o5XLhUF/ShS8IKBQA7";
    $imgs["g"] = "R0lGODlhEAAQAKL/AP//////mf/MAMzMmcyZAGZmAAAAAP///yH/C0FET0JFOklSMS4wAt7tACH5BAEAAAcALAAAAAAQABAAQANIeLrcV0EIGKqt5kUgoiSZo1DSJ4BaNRQs60Dd1KKixnlfuBh874etQm1BuVh0o8CtRKARKxPLKqjwwZa5Bgx3ciZLpy5yyEgAADs=";
    $imgs["h"] = "R0lGODlhEAAQAKIEAAAAgICAgAAAAP///////wAAAAAAAAAAACH5BAEAAAQALAAAAAAQABAAAAM/SLrcGzBCp8K4eDqLrw3bBYyDYAoN12EC+IgjWbrV2rUMF8v4a1+92mAHANIIKlsQCYsZc7/n4kSlHpGSrCsBADs=";
    $imgs["i"] = "R0lGODlhCwALALMAAAAzZszMzDNmmUdHRxwcHPHx8WaZmczs/2ZmZqenp8zM/////////wAAAAAAAAAAACH5BAUUAAwALAAAAAALAAsAAAQzkEk2CJkSaaGEDkyiHMUxKuiAAGzbXkjXGYJxMcgiHBx357ue4qfjyYjBY6Yo/FmeT0YEADs=";
    $imgs["j"] = "R0lGODlhEAAQAKL/AP////j8+Pj8AMbHxoCAgEdHRwAAAP///yH5BAEAAAcALAAAAAAQABAAQANJKHekbKasOQ24OEvCgRAZFElVZgJko4KXMZDM0pwYfFj0ZYs8vykEAINVsB0EM07H8qIAgk+IyRbsSVEUixW3A2x12RyYQi4fEgA7LpuLWhQ6fVStXYd2S8QqvmCzAW1Vk7fqiHxOrycAADs=";
    $imgs["k"] = "R0lGODlhEAAQAKL/APj4+NDQyICAgAAAAP///wAAAAAAAAAAACH/C0FET0JFOklSMS4wAt7tACH5BAEAAAQALAAAAAAQABAAAAM+SLrc/kzISSsQI+utwx1AKI6hh5EAKA6mOrppG2YzHX/pnOcsntIqUO8U3AllP6FtCEOVLoGodDp1WkMQSAIAOw==";
    $imgs["l"] = "R0lGODlhEAAQAKIEAAAAgICAgAAAAP///////wAAAAAAAAAAACH5BAEAAAQALAAAAAAQABAAAAM/SLrcGzBCp8K4eDqLrw3bBYyDYAoN12EC+IgjWbrV2rUMF8v4a1+92mAHANIIKlsQCYsZc7/n4kSlHpGSrCsBADs=";
    $imgs["m"] = "R0lGODlhEAAQALP/AP////j8yPj8mPjMmPD08MjMYJicAAAAAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAgALAAAAAAQABAAQARIEMlJKzJBaD1E78VxBWRpZuFVrGzLihdBagZcYVv+CSnOecDBIGUp3gzImtHgWiWTEl9O18tMf0ORdLPLjrpBIfFALpvNxnQEADs=";
    $imgs["n"] = "R0lGODlhEAAQALMAAAAAAP/MZplmM2ZmM5mZ/+fn1q2pkP/////MmYCAgJmZM+/WxpmZZv///wAAAAAAACH5BAUUAA0ALAAAAAAQABAAAARGsMlJq70448FH0sNSjN4mnKfSccBEAEcsz630Gkuu6y3h+4DdrgUAvIoGhHKJqDVuhiRT6UROmU4DwxDoer3Vongs1pjNEQA7";
    $imgs["o"] = "R0lGODlhCwALAJEAAAAAAP///5mZmQAAACwAAAAACwALAAACFpSPFsus3R5ccj6AMRXT8R5UkBglZgEAOw==";
    $imgs["p"] = "R0lGODlhCwALAJEAAAAAAP///5mZmQAAACwAAAAACwALAAACGJSPFsus3d4CUTTqbACcL7lVlwhlZZYkBQA7";
    $imgs["q"] = "R0lGODlhEAAQALP/AP//////mdTQyMzMzIaGhjOZAAQEBACZZgBmZgAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C0FET0JFOklSMS4wAt7tACH5BAAAAAAALAAAAAAQABAAAARTUAhCq5V4gs03MZnWBUBAACB2dgVpvKnIFS0wDPEa0DyJqyXEAUAjBX6SFaJU8+WCRihSZKwtp6dqAXBAHJ9MXg1bCpe/wHPTlru537cYbE4HRQAAOw==";
    $imgs["r"] = "R0lGODlhAgAWAID/AP///4CAgCH/C0FET0JFOklSMS4wAt7tACH5BAAAAAAALAAAAAACABYAAAIIDIynyesNQQEAOw==";
    $imgs["s"] = "R0lGODlhEAAQALP/AP//////mf/MAMzMmcyZAJmZZpmZAGZmADMzMwAAAP///wAAAAAAAAAAAAAAAAAAACH/C0FET0JFOklSMS4wAt7tACH5BAEAAAoALAAAAAAQABAAQARQUMlJqzoBCICEFwRIJFdgnuhJYl7oEkQRk2UwDAZtYRrib5/QKuPxGRGwgs7CnByez+YFSq0ehsCORtPCHjsfELYXFI1K5VfsnGi733BpMwIAOw==";
    $imgs["t"] = "R0lGODlhEAAQALP/AP//////AP8AAICAgICAAIAAAAAA/wAAAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAgALAAAAAAQABAAQARYEMlJ0biUhE2A/8BwSMN2jBVVCEJgGAfoidU1eOcxUHcX/4DfqLApxmQ0SQGWa+ZSpAuudgueoIiDScTV6SYDjS9I9iI0xUAHOWxtYLIQavXS2e4oSR4bAQA7";
    $imgs["u"] = "R0lGODlhEAAQAOMJAP//zv//nP/OnPf3987OY5ycAISEhAD//wAAAP///////////////////////////yH+FUNyZWF0ZWQgd2l0aCBUaGUgR0lNUAAh+QQBAAAPACwAAAAAEAAQAAAETvDJSau9t2iN8CsDAARB0VkFoa7EtkmFKBt0HRBdTJIGhQi4D6BWmyBuuaHPCEz2jEak8ClBWK3NKfEoCAiyMcMV6/0GU6z06jRutz2XCAA7";
    $imgs["v"] = "/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAARABEDAREAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAcDBAX/xAAkEAABBAEEA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auQIJSMCkgFTgGToyPSi0iIgdnxR0rSqVaZhNFSQ4E1JlSM9w4odS5bsiQ9KfGCJgqCs27dw/8VSKWIBS5G4ePPqdYDlAA29gAOPBdEoi+DDiBlmIAQisWPECgQBeUwZMF0LkytrhgvEgg8Tm0OXBUGIiOjTYUlbMI26dU7VOFzLXkh6SePZuFXfxi1b9RXes30D720BRobhrlUfR46atI/dzEOrvhtdtO7q1gkZxr75OnfNzqF/dzx9fGXv5skTop4+MWkpW9qrfyJePuDy9g/jzx9YdWb+960HYH8CDqgXegbGhWCCby3I4GiMPaggIctJ6BZpVgxhYYMRbgihBfV5yJODIu5EYomvdYhiTyeuSJuKLurUYozvvBcijfBc4QOIOOq0GI89vjQjjSzAGCQ8Jux4Y7iPJgyyJI4gSCHFkzQ6UAaQR8ZTBC9UxgiEN1262BmWWb5DBCH/lRmDaheoCc8F3rTpZgxfWiCnm0NYMUF8c2IY5opDxhioi8L1aWSWsM25pgVW3KkmDoSANicLK/iQZpk46PMnipAOo6gCSip6BTCblngBFmSWyYF2onrGhaJNEOKCohj+NucV3rDm5plYoKAoCo140UUXJiggwlXIJqusVSIUYYIDXXixow8eeMLPtdhe64kYgwQCADs=";
	$imgs["pt"] = "R0lGODlhEAAQAJH/AP///wAAAP///wAAACH/C0FET0JFOklSMS4wAt7tACH5BAEAAAIALAAAAAAQABAAAAIYlI+py+2vAjRBwmodzmzzjk2h+GnTiU4FADs=";
    $imgs["pu"] = "R0lGODlhEAAQALP/AP//////AP8AAMDAwICAgICAAIAAAAAA/wAAgAAAAP///wAAAAAAAAAAAAAAAAAAACH/C0FET0JFOklSMS4wAt7tACH5BAEAAAoALAAAAAAQABAAAARZUMlJq7016c33TNg3SKBhnqeSjKqCvipbCgZtGzGpCHxv5y1eIRAo8HArC5HYAw4OhwEASj3knk8EQYE4dBG5KGCAAJfP4agXbEmSz9uOZjQuE0aDvD6viAAAOw==";
    $imgs["pv"] = "R0lGODlhEAAQANUAAAAAAADMAMyZMwDMzMwAA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uBq2OEpVaHuWWDrmiFoVuMv4ODg12NvXOKrX2KmWCRxWuQxGKWzX+Oq4OQnmubzImUqWqd1HaaxXWbw2+cz2yd04qXpnKeyG2g13yewHegy4Wdt5mZmXihyXmiyoudunOk13Sk1XKk3ImguXam2Hql1XOn4nuo1ICnz4WnyISny4Cp1Hqr24Gq1ImrzZmpuoKv3Kenp4Wv2ZirwZOvy5utwaurqpyuyKmssK2tra+vr5K43qmyxI+65aK2zLOzs5W64pG+7Ji947K3vZW+6Le3t4/B85fA6La5vZTB8pvB57q6upLE9ZXH+7PBzpbI/JnM/8bGxsPH0qbP+LvM3arT/cTO3MrN0s/Pz9LX383a6NXY4tLa4dnZ2dPc5dzc3N/f39jh6uLi4eXl5OXm6urr6+rs7+zs6+zu8fT19vL2+vL3+/z9/v///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////yH+FUNyZWF0ZWQgd2l0aCBUaGUgR0lNUAAh+QQBCgD/ACwAAAAAEAAQAAAI3gD/CRQYqdCfNnMYDVw46cqTJmHIbJFSI0QKNwMhvSE0SA+XLl7MgKEyxIKLf5XqEAIU406mUKFAfZLjxEcEHX4IBcqgJhSIIIpOqMDk6YiNCX0SfUlwKdQFASseVNAUytEMAnQORTFgKVSDAyQ6cYKJaEQBMXuqUICyCUAAIjBDSULBQUEaO3iwaBhj6FFcQSY6QCjzb42ROEyQsOjR6AyOHBgk5Bk45caPJEXQ8KDxAoGHRQv/CWmxwQoQGR8cYAwtUAkMLTsGiODDemGWJQzYUKq9sMQCOLt5Cw8dEAA7";
	$imgs["pz"] = "R0lGODlhEAAQAMQAAP/+/svQ0JSgoFySuVqMtliJtVeGtFSAslB3r0l0oU1xrEtrqldpakhlqCE5OgAKC////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAUUABAALAAAAAAQABAAAAVvIAQ9j2ieJlkUpNiiz6Cyz/q6Qz6vdpoTBMOO5QMaDIcDaekoPYzIAwLxYFgfjlEwOlVUE6Ts45jsehlg7IiLUHiX8Ee5rVg8AoCAQMBwPugLdgx8Ak0lLg+BDXd5e30wD4uDg4YoiHh6fIeWcUshADs=";
	if ($k!="") { 
		while (list($key, $val) = each($imgs))  
		   echo "<img src='$href?i=$key'>$key";  
	}
    
    print base64_decode ($imgs[$i]);
	exit;
}  

function metafiletransition () {

    $f = func_get_args() ;
    $j = func_num_args();
	$fcontents =implode ('', file ($f[0])); 	
	for ($k=2;$k<$j;$k+=2) {
		if (!(strpos($fcontents,$f[$k])===false)) {
		} else { 
		    if ($f[1]==0) $fcontents = str_replace($f[$k+1],$f[$k],$fcontents); 
			else $fcontents = $f[$k+1]."&".$fcontents; 
		}
	}
	WriteToFile($f[0], $fcontents); 
}

function script_block ($content, $source="") 
{
    return "<"."script language='javascript' ".($source==""?"":"src='".$source."'").">".$content."</"."script>";
}

function response_redirect ($url) 
{
    print script_block("location.href='$url'"); 
}

function file_to_array($path) { 
   if (file_exists($path)) {
	$fcontents  = implode ('', file ($path)); 
	$fcontents  = trim ($fcontents);
	return explode("\n", $fcontents);
   } else return array();
}

function path_from_root($input_path) {
   global $path;
   return str_replace($path,"",$input_path);
}

function slashout ($i) {
    while (substr($i,strlen($i)-1,1)=="/") $i=substr($i,0,strlen($i)-1);
    while (substr($i,strlen($i)-1,1)=="@") $i=substr($i,0,strlen($i)-1);
    while (substr($i,strlen($i)-1,1)=="*") $i=substr($i,0,strlen($i)-1);
    while (substr($i,strlen($i)-1,1)=="&") $i=substr($i,0,strlen($i)-1);
	return $i;
}

function filetitle($path,$limit=0,$right=false) 
{ 
	$path = slashout ($path);
    $v = explode ("/", $path);
	$x = $v[count($v)-1]; 
	if ($limit>0&&strlen($x)>$limit)
	{
	    if ($right)
		{
		    $x="...".substr($x,strlen($x)-$limit);
		}
		else
		{
		    $x= substr($x,0,$limit)."...";
		}
	}  
	return $x;
}

function fileparent($path) { 
	$path = slashout ($path);
    $v = explode ("/", $path);
	$x = "";
	for ($e=0;$e<count($v)-1;$e++) $x.=($x==""?"":"/").$v[$e]; 
	return $x;
}


function savecookie($COOKIENAME,$text,$qs="") { 
	global $href;
	setcookie ($COOKIENAME, $text, time()+60*60*24*30 ); 
	print "<script>location.href='".$href."?".$qs."';</script>";   
	exit;
}

function isreadable ($path) {
 //   $filetype = exif_imagetype($path);
	$isok = false;
	$info = pathinfo($path); 
	$extension = strtolower($info["extension"]);
	$audios    = ",mp3,wav,mpg,mpeg,wmv,avi,";
	$images    = ",jpg,jpeg,gif,png,";
	$editors   = ",log,txt,asp,php,htm,html,js,xml,xsl";
    if ($extension=="log") {
	} else {
		if (strpos($path,"workcopy")>0) {
			// work copy image 
		} else if (!(strpos($images,$extension)===false)) {
			 $isok = true;  
		} else if (!(strpos($audios,$extension)===false)) {
			 $isok = true;  
		} else if (!(strpos($editors,$extension)===false)) {
			 $isok = true;  
		} 
	} 
	return $isok;
}

function is_picture ($path) { 
	$isok = false;
	$info = pathinfo($path); 
	$extension = strtolower($info["extension"]); 
	$images    = ",jpg,jpeg,gif,png,"; 
    if ($extension=="log") {
	} else {
		if (strpos($path,"workcopy")>0) {
			// work copy image 
		} else if (!(strpos($images,$extension)===false)) {
			 $isok = true;   
		} else if (!(strpos($path,"http")===false)) {
			 $isok = true;   
		} 
	} 
	return $isok;
}

function iseditable ($path) { 
	$isok = false;
	$info = pathinfo($path); 
	$extension = strtolower($info["extension"]);
	$audios    = ",mp3,wav,mpg,mpeg,wmv,avi,";
	$images    = ",jpg,jpeg,gif,png,";
	$editors   = ",log,txt,asp,php,htm,html,js,xml,xsl,";
    if ($extension=="log") {
	} else {
		if (strpos($path,"workcopy")>0) {
			// work copy image 
		} else if (!(strpos($images,$extension)===false)) {
			 $isok = true;   
		} else if (!(strpos($editors,$extension)===false)) {
			 $isok = true;  
		} 
	} 
	return $isok;
}

function my_content_type ($path) {
 //   $filetype = exif_imagetype($path);
	 
	 
	    $editors   = ",log,txt,asp,php,htm,html,js,xml,xsl,";
	    $audios    = ",mp3,wav,mpg,mpeg,wmv,avi,";
		$info = pathinfo($path);
		$extension = strtolower($info["extension"]);
	
		if (!(strpos($audios,$extension)===false)) {
			 $extension = "mpg";
		}   
		if (!(strpos($editors,$extension)===false)) {
			 $extension = "txt";
		}   
	return $extension;
}
if (!function_exists ("mime_content_type")) {
	function mime_content_type ($file) {
	    $ret = exec ("file -bi " . escapeshellcmd($file)); 
		$i = strpos($ret, ";");
		if ($i > 0) {
		    $ret = substr($ret, 0, $i);
		} 
		return $ret;
	}
}

function addMediaContainer ($path, $type="mpg", $width="320", $height="260") {
    $path = str_replace(" ","%20",str_replace("&","%26",$path));
    if ($type=="mpg") { ?>
		<object id="WMP" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" style="border:inset 1px" VIEWASTEXT>
			<param name="FileName" value="<?= $path ?>">
			<param name="ShowDisplay" value="false">
			<param name="ShowControls" value="false">
			<param name="AutoStart" value="true"> 
			<param name="AutoSize" value="true">
			<param name="AutoPlay" value="true">
			<param name="AllowChangeDisplaySize" value="true">
			<embed width="<?= $width ?>" height="<?= $height ?>" src="<?= $path ?>" 
			 target="myself" controller="true" type="video/quicktime" autoplay="true" 
			 pluginspage="http://www.apple.com/quicktime/download/indext.html"/>
		</object>		<?
    } else if ($type=="nsv") {  ?>
		<object CLASSID="clsid:C5E28B9D-0A68-4B50-94E9-E8F6B4697514" width="<?= $width ?>" height="<?= $height ?>" BORDER=0 
			 codebase="http://www.nullsoft.com/nsv/embed/nsvplayx_vp3_mp3.cab#Version=-1,-1,-1,-1" id="nsvplayx" align="absmiddle">
			<PARAM NAME="Location" VALUE="<?= $path ?>" ref>
			<param name="_Version" value="65536">
			<param name="_ExtentX" value="8625">
			<param name="_ExtentY" value="6747">
			<param name="_StockProps" value="0">
			<param name="Bandwidth" value>
			<embed type="application/x-nsv-vp3-mp3" width="320" height="240" 
						codebase="http://www.nullsoft.com/nsv/embed/nsvplayx_vp3_mp3.cab#Version=-1,-1,-1,-1" 
						location="<?= $path ?>"></embed>
		</object> <?
    } else if ($type=="ram") {  ?>
		<object id=RVOCX classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' >
		<param name='SRC'       value='<?= $path ?>'>
		<param name='controls'  value='ImageWindow'>
		<param name='console'   value='cons'>
		<param name='autostart' value='true'> 
			<embed width="<?= $width ?>" height="<?= $height ?>" src="<?= $path ?>" TYPE="audio/x-pn-realaudio-plugin"
			autostart="true"  controls="ImageWindow" target="myself" controller="true" autoplay="true" pluginspage="http://www.real.com/" />
		</object> <?
	} else {
	
	}
}
function chmodnum($mode) {
   $mode = str_pad($mode,9,'-');
   $trans = array('-'=>'0','r'=>'4','w'=>'2','x'=>'1');
   $mode = strtr($mode,$trans);
   $newmode = '';
   $newmode .= $mode[0]+$mode[1]+$mode[2];
   $newmode .= $mode[3]+$mode[4]+$mode[5];
   $newmode .= $mode[6]+$mode[7]+$mode[8];
   $newmode = str_pad($newmode,4,'0',STR_PAD_LEFT);
   return $newmode;
}

function getPermissions($path) {
	$perms = fileperms($path);
	
	if (($perms & 0xC000) == 0xC000) {
	   // Socket
	   $info = 's';
	} elseif (($perms & 0xA000) == 0xA000) {
	   // Symbolic Link
	   $info = 'l';
	} elseif (($perms & 0x8000) == 0x8000) {
	   // Regular
	   $info = '-';
	} elseif (($perms & 0x6000) == 0x6000) {
	   // Block special
	   $info = 'b';
	} elseif (($perms & 0x4000) == 0x4000) {
	   // Directory
	   $info = 'd';
	} elseif (($perms & 0x2000) == 0x2000) {
	   // Character special
	   $info = 'c';
	} elseif (($perms & 0x1000) == 0x1000) {
	   // FIFO pipe
	   $info = 'p';
	} else {
	   // Unknown
	   $info = 'u';
	}
	
	// Owner
	$info .= (($perms & 0x0100) ? 'r' : '-');
	$info .= (($perms & 0x0080) ? 'w' : '-');
	$info .= (($perms & 0x0040) ?
			   (($perms & 0x0800) ? 's' : 'x' ) :
			   (($perms & 0x0800) ? 'S' : '-'));
	
	// Group
	$info .= (($perms & 0x0020) ? 'r' : '-');
	$info .= (($perms & 0x0010) ? 'w' : '-');
	$info .= (($perms & 0x0008) ?
			   (($perms & 0x0400) ? 's' : 'x' ) :
			   (($perms & 0x0400) ? 'S' : '-'));
	
	// World
	$info .= (($perms & 0x0004) ? 'r' : '-');
	$info .= (($perms & 0x0002) ? 'w' : '-');
	$info .= (($perms & 0x0001) ?
			   (($perms & 0x0200) ? 't' : 'x' ) :
			   (($perms & 0x0200) ? 'T' : '-'));
	
	return $info; // .chmodnum($info);

}

function permtable ($filepath,$title) { 
   global $href;
   global $qs;
    if (file_exists($filepath)) { 
		$filedata = getPermissions($filepath); 
		$legals="-rwxrwxrwx";?>
		<form action="<?= $href ?>?<?= $qs?>" method="post">
		<b>Permissions</b><br>
			<table cellpadding="0" width="155px" cellspacing="0" style="border:solid 1px silver " bgcolor="#e0e0FF">
			<?
			$groups = array ("User","Group","Other");
			$types  = array ("Read","Write","Exec");
			$index  = 0;
			for ($g=0;$g<count($groups);$g++) {
			
				print "<tr><td colspan=3><b>".$groups[$g]."</b></td>";
				print "</tr>";
				print "<tr>"; // <td>".$groups[$g]."</td>";
				for ($t=0;$t<count($types);$t++) {
					$index ++;
					print "<td class=padded><input onclick=\"parsemode('ckmod".$title."', 'ipmode".$title."')\" id='ckmod".$title."'";
					print " value='".substr($legals,$index,1)."' "; 
					if (substr($filedata,$index,1)!="-") print " checked ";
					print " type=checkbox>";
					print "".$types[$t]."</td>";
				}
				print "</tr>";
			}
			 $owneruid  = fileowner ( $filepath );
			 $ownerdata = posix_getpwuid($owneruid ) ;
			 $ownergid  = $ownerdata["gid"];
			 $groupdata = posix_getgrgid ($ownergid);
			 $members   = $groupdata["members"];
			 // print_r ($groupdata);
			?>
			<tr> 
			  <td colspan="3" class=padded>Octal&nbsp;<input id="ipmode<?= $title ?>dec" name="ipmode<?= $title ?>dec" size=5 value="<?= chmodnum(substr($filedata,1)) ?>"></td>
			</tr>
			<tr>
			  <td colspan="3" class=padded align="right"><input type="submit" value="Save"></td> 
			</tr>
			</table>
			<br>
			<b>Ownership</b><br>
			<table cellpadding="2" width="140" cellspacing="1" style="border:solid 1px silver ">
			<tr>
			  <td width="40">User</td>
			  <td colspan=2>&nbsp;<input size=16 value="<?= $ownerdata["name"] ?>">
			   
			  
			  </td>
			</tr> 
			<tr>
			  <td width="40">Group</td>
			  <td colspan=2>&nbsp;<input size=16 value="<?= $groupdata["name"] ?>"></td>
			</tr> 
			</table>  
			<input type="hidden" value="<?= $filepath ?>" name="fu<?= $title ?>" id="fu<?= $title ?>"> 
			<input type="hidden" value="<?= chmodnum(substr($filedata,1)) ?>" name="ipmode<?= $title ?>" id="ipmode<?= $title ?>">
		</form> <? 
    } 
}


function sendToPHPDc ($host,$method,$path,$data,$useragent=0) {
	if (empty($method)) {
		$method = 'GET';
	}
	$method = strtoupper($method);
	$fp = fsockopen($host,80);
	if ($fp) {
		if ($method == 'GET') {
			$path .= '?' . $data;
		}
		fputs($fp, "$method $path HTTP/1.0\r\n");
		fputs($fp, "Host: $host\r\n");
		fputs($fp, "Content-type: application/x-www-form-urlencoded\r\n");
		fputs($fp, "Content-length: " . strlen($data) . "\r\n");
		if ($useragent)
		     fputs($fp, "User-Agent: MSIE\r\n");
		fputs($fp, "Connection: close\r\n\r\n");
		if ($method == 'POST') {
		    fputs($fp, $data);
		}
		while (!feof($fp))
		     $buf .= fgets($fp,1024);
		fclose($fp);
	}
	
	$p = strpos ( $buf, "<");
	$buf = substr($buf, $p);
	return $buf;
}
 
function gen_folder_markup($dirname,$selected_local="",$selected_remote="",$recurse_remote="") {
    
	global $folder_captions;
	$recurse_folder = new pimp_folder ($dirname, $recurse_remote);  
	$folder_markup  = "";
	
	while (list($key, $folder) = each($recurse_folder->pimp_folders))   { 
	    if ($folder["name"]!="..") {
			$folder_type    = $folder_captions[$folder["type"]]; 
			$folder_markup .= "<folder>\n";
			$folder_markup .= "    <path>".$folder["path"]."</path>\n";
			$folder_markup .= "    <name>".$folder["name"]."</name>\n";
			$folder_markup .= "    <type>".$folder_type." Folder</type>\n";
			 
			if ($folder["hasfolders"]) $folder_markup .= "<subcount>1</subcount>\n"; 
			
			if ($folder["path"]==$selected_local) { // expand the selected LOCAL folder						
				if ($folder["type"]!=FOLDER_TYPE_REMOTE_SUBFOLDER) 
					$folder_markup .= gen_folder_markup($folder["path"],$selected_local,$selected_remote,"");	  
			} else if ( ! (strpos($selected_local,$folder["path"])===false) ) { // expand the parent of the selected LOCAL folder			 
				$folder_markup .= gen_folder_markup($folder["path"],$selected_local,$selected_remote,"");
			} else if (slashout($folder["path"])==slashout($selected_remote)) { // expand selected REMOTE folder
			    $folder_markup .= gen_folder_markup($dirname,$selected_local,$selected_remote,$folder["path"]);	 
			} else if ( ! (strpos($selected_remote,$folder["path"])===false) ) { // expand the parent of the selected REMOTE folder			 
			    $folder_markup .= gen_folder_markup($dirname,$selected_local,$selected_remote,$folder["path"]);	 
			}  
			$folder_markup .= "</folder>\n";  
		} 
	}	 
	
	return $folder_markup;
}
  
function fb_edit() { 
    global $_SERVER;
    $f = func_get_args() ;
    $j = func_num_args();
    if (strlen($_SERVER["QUERY_STRING"]) > 0) {      
        $a = $_SERVER["QUERY_STRING"];
        for ($k=0;$k<$j;$k+=2) {
			$s = "";
			$b = false;
            $q = split($a, "&");
            
			for ($i=0;$i<count($q);$i++) {
			    if ($q[$i]!="&") {
					$n = split($q[$i],"=");
					if ($s=="") $d="";
					else $d="^";			    
					if ($n[0]==$f[$k]) {
					    $s .= $d.$f[$k]."=".$f[$k+1];
					    $b = true;
					} else $s .= $d.$q[$i];
					$d = "";
			    }
			}
			if ($s=="") $d="";
			else $d="@[".$s."]";
			if (!$b) $s .= $d.$f[$k]."=".$f[$k+1];
			$a = $s; 
			$d = "";
        }                
    } else { 
        $s = "";
        for ($k=0;$k<$j;$k+=2)  {
			if ($s=="") $d="";
			else $d="!";
            $s .= $d.$f[$k]."=".$f[$k+1];
            $d = "";
        }
    } 
    return $_SERVER["SCRIPT_NAME"]."?".$s;
} // fb_edit
// **********************************************************************'

function cln($i) {
  $i=stripslashes ($i);
  $i=strtolower ($i);
  return $i;
}
 
 
?>